package com.itcast.abstractdemo.Demo03;

/*
要写注释哦!!!
*/
public abstract class Employee {
    //姓名、年龄
    private String name;
    private int age;

    public Employee() {
    }

    public Employee(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    //个人介绍方法
    public void showself() {
        System.out.print("我叫" + name + "，年龄" + age + "岁了，");
    }

    public abstract void otherInfo();

    public final void sumShow() {
        showself();
        otherInfo();
    }
}
